package src.lab02.text20;

import java.util.Scanner;

/**
 * Created by 12442 on 2017/10/26.
 */
public class Text {
    public static void main(String[] args) {


        //用户键盘里输入一行含数字和字符的字符串
        String result;

        //从键盘输入数据

        Scanner scanner=new Scanner(System.in);

        result=scanner.next();

        System.out.println(result);

        //仅仅输出全部字符串中的全部数字字符

        char tmp;

        int i;
        for (i=0;i<result.length()-1;i++){

            tmp=result.charAt(i);

            if (tmp>'0'&& tmp<'9'){

                System.out.println(tmp);
            }
        }
    }
}
